//
//  CTPublishLogic.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/6/13.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <Foundation/Foundation.h>
@class CTRequestEditeEmojiListItem;
@class CTRequestPublishUploadItem;
@class CTRequestEditeBubbleListItem;

@class CTEditeEmojiListItem;
@class CTEditeEmojiListDetailsItem;

typedef void (^requestSuccessBlock) ();
typedef void (^requestFailedBlock) ();


@interface CTPublishLogic : NSObject

-(void)emojiListRequest:(CTRequestEditeEmojiListItem *)item
successCompletionHandler:(requestSuccessBlock)successBlock
         failedHandler:(requestFailedBlock)failedBlock;

-(void)bubbleListRequest:(CTRequestEditeBubbleListItem *)item
successCompletionHandler:(requestSuccessBlock)successBlock
          failedHandler:(requestFailedBlock)failedBlock;


-(void)publishRequest:(CTRequestPublishUploadItem *)item
successCompletionHandler:(requestSuccessBlock)successBlock
          failedHandler:(requestFailedBlock)failedBlock;


//话题逻辑运算json数据生成器
-(NSString *)jsonStrForTopic;
-(NSMutableArray *)topicGroupList;
-(void)setTopicGroupItem:(CTEditeEmojiListItem *)item;
-(void)setTopicGroupDetailItem:(CTEditeEmojiListDetailsItem *)item;
-(void)delTopicGroupDetailItem:(CTEditeEmojiListDetailsItem *)item;


@end
